void setup() { Wire.begin(); //creates a Wire object
// set I/O pins to outputs Wire.beginTransmission(0x20); //begins talking to the slave device Wire.write(0x00); //selects the IODIRA register Wire.write(0x00); //this sets all port A pins to outputs Wire.endTransmission(); //stops talking to device Wire.beginTransmission(0x20);//begins talking again to slave device Wire.write(0x01); //selects the IODIRB register Wire.write(0x00); // sets all port B pins to outputs Wire.endTransmission(); //ends communication with slave device }
void loop() { Wire.beginTransmission(0x20); //starts talking to slave device Wire.write(0x12); //selects the GPIOA pins Wire.write(00000011); // turns on pins 0 and 1 of GPIOA Wire.endTransmission(); //ends communication with the device Wire.beginTransmission(0x20); //starts talking to slave device Wire.write(0x13); //selects the GPIOB pins Wire.write(00000001); //turns on pin 0 of GPIOA Wire.endTransmission();//ends communication with the device }
void setup() { Wire.begin(); //creates a Wire object
// set I/O pins to outputs Wire.beginTransmission(0x20); //begins talking to the slave device Wire.write(0x00); //selects the IODIRA register Wire.write(0x00); //this sets all port A pins to outputs Wire.endTransmission(); //stops talking to device Wire.beginTransmission(0x20);//begins talking again to slave device Wire.write(0x01); //selects the IODIRB register Wire.write(0x00); // sets all port B pins to outputs Wire.endTransmission(); //ends communication with slave device }
void loop() { Wire.beginTransmission(0x20); //starts talking to slave device Wire.write(0x12); //selects the GPIOA pins Wire.write(00000011); // turns on pins 0 and 1 of GPIOA Wire.endTransmission(); //ends communication with the device Wire.beginTransmission(0x20); //starts talking to slave device Wire.write(0x13); //selects the GPIOB pins Wire.write(00000001); //turns on pin 0 of GPIOA Wire.endTransmission();//ends communication with the device }
The campaign, which security firm Check Point has named Rampant Kitten, comprises two main components, one for Windows and the other for Android. Rampant Kitten’s objective is to steal Telegram messages, passwords, and two-factor authentication codes sent by SMS and then also take screenshots and record sounds within earshot of an infected phone, the researchers said in a post published on Friday.
Telegram hopes to raise $1bn with a convertible bond private placement
The super secure UAE-based Telegram messenger service, developed by Russian-born software icon Pavel Durov, is looking to raise $1bn through a bond placement to a limited number of investors from Russia, Europe, Asia and the Middle East, the Kommersant daily reported citing unnamed sources on February 18, 2021.The issue reportedly comprises exchange bonds that could be converted into equity in the messaging service that is currently 100% owned by Durov and his brother Nikolai.Kommersant reports that the price of the conversion would be at a 10% discount to a potential IPO should it happen within five years.The minimum bond placement is said to be set at $50mn, but could be lowered to $10mn. Five-year bonds could carry an annual coupon of 7-8%.